home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Hash_PrintStats C Library Procedures Hash_PrintStats
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- Hash_PrintStats - print statistics about a hash table
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<hhaasshh..hh>>
-
- HHaasshh__PPrriinnttSSttaattss(_t_a_b_l_e_P_t_r, _p_r_o_c, _c_l_i_e_n_t_D_a_t_a)
-
- AARRGGUUMMEENNTTSS
- Hash_Table *_t_a_b_l_e_P_t_r (in) Table about which to
- print information.
-
- void (*_p_r_o_c)() (in) Procedure to call to
- actually print informa-
- tion.
-
- ClientData _c_l_i_e_n_t_D_a_t_a (in) Arbitrary additional
- argument to be passed to
- _p_r_o_c.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- HHaasshh__PPrriinnttSSttaattss prints out statistical information about
- bucket usage in _t_a_b_l_e_P_t_r. The information includes the
- total number of buckets and entries in the table, plus a
- histogram indicating how many buckets have each different
- number of entries in them.
-
- HHaasshh__PPrriinnttSSttaattss does not output the statistics information
- directly. Instead, it invokes _p_r_o_c to do the output. Proc
- must have the following calling sequence:
-
- void
- proc(_c_l_i_e_n_t_D_a_t_a, _s_t_r_i_n_g)
- ClientData _c_l_i_e_n_t_D_a_t_a;
- char *_s_t_r_i_n_g;
- {
- }
-
- The _c_l_i_e_n_t_D_a_t_a parameter will be the same as the _c_l_i_e_n_t_D_a_t_a
- to HHaasshh__PPrriinnttSSttaattss; ostensibly it provides information to
- help _p_r_o_c perform the actual I/O, such as channel number.
- _S_t_r_i_n_g is a NULL-terminated string of characters containing
- the statistical information. _P_r_o_c may be invoked many times
- during a single call to HHaasshh__PPrriinnttSSttaattss.
-
-
- KKEEYYWWOORRDDSS
- hash table, print, statistics
-
-
-
-
- Sprite v.1.0 Printed: May 14, 1989 1
-
-
-
-